﻿using Basic.FlowApplication.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowApplication.AuditLocalEvent.BeginEvent
{
    internal class SendMsg : IEventHandler<AuditBeginEvent>
    {
        private readonly IBeginMsgService _Service;

        public SendMsg ( IBeginMsgService service )
        {
            this._Service = service;
        }

        public void HandleEvent ( AuditBeginEvent data, string eventName )
        {
            this._Service.HandlerMsg(data.Body);
        }
    }
}
